package cn.tedu.sp12;

public class SingleObject4 {
//静态内部类-->饿汉式基础
    private  static class SingleObject4Holder{
        private static  final  SingleObject4 INSTANCE=new SingleObject4();
}
private SingleObject4(){}
public  static final SingleObject4 getInstance(){
        return SingleObject4Holder.INSTANCE;
}

}

